package profiterole.android;

import com.profiterole.android.R;

import android.app.Activity;
import android.os.Bundle;
import android.text.method.ScrollingMovementMethod;
import android.widget.TextView;

public class DictionaryScreen extends Activity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.dictionary_screen);
	}
	
	@Override
	public void onResume() {
		super.onResume();
		
		Bundle b = getIntent().getExtras();
		
		// TODO make sure b is not null
		String map = b.getString(SearchScreen.WORDS_TO_OCCURENCES_MAP);
	
		TextView resultText = (TextView) findViewById(R.id.dictionaryTextView);
		resultText.setMovementMethod(new ScrollingMovementMethod());
		resultText.setText(map);
	}
}